<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Vue.js</title>
    <link rel="stylesheet" href="style.css">
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>

</head>

<body>
    <!-- vue-app是根容器 -->
    <div id="vue-app">
        <h1>键盘Events</h1>
        <label>姓名</label>
        <input type="text" @keyup.enter="logName">
        <label>年龄</label>
        <input type="text" @keyup.alt.enter="logAge">
    </div>
    <script src="app3.js"></script>
</body>

</html>